package com.teamall.web.tssy.db.dao.mapper;

import com.teamall.web.tssy.db.arg.TsSyRoleResourceArg;
import com.teamall.web.tssy.db.po.TsSyRoleResourcePO;

import java.math.*;
import java.util.*;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

public interface ITsSyRoleResourceMapper {
    
    List<Integer> countByArg(TsSyRoleResourceArg arg);

    List<TsSyRoleResourcePO> selectByArg(TsSyRoleResourceArg arg);

    TsSyRoleResourcePO selectByPrimaryKey(String id);

    List<TsSyRoleResourcePO> selectByArgAndPage(TsSyRoleResourceArg arg, RowBounds rowBound);

    int insert(TsSyRoleResourcePO record);

    int insertSelective(TsSyRoleResourcePO record);

    int insertBatch(@Param("list") List<TsSyRoleResourcePO> records);

    int updateByArgSelective(@Param("record") TsSyRoleResourcePO record,
            @Param("arg") TsSyRoleResourceArg arg);

    int updateByArg(@Param("record") TsSyRoleResourcePO record,
            @Param("arg") TsSyRoleResourceArg arg);

    int updateByPrimaryKeySelective(TsSyRoleResourcePO record);

    int updateByPrimaryKeys(TsSyRoleResourcePO record);
    
    int updateByPrimaryKey(TsSyRoleResourcePO record);
    
    int deleteByArg(TsSyRoleResourceArg arg);
    
    int deleteByPrimaryKey(String id);
    
}